<?php 
/**
 * Australian football extension for Joomleague
 * @version $Id$
 * @package jlg_AustralianFootball
 * @copyright Copyright (C) 2007 Julien Vonthron. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * this is free software and parts of it may contain or be derived from the
 * GNU General Public License or other free or open source software licenses.
 * 
 * contact: julien.vonthron[at]gmail.com 
 *   
 * Joomleague is a League Management and Prediction Game for Joomla!
 * Homepage: http://www.joomleague.de 
 *  
 */
 
//include_once('classes/HockeyProject.php');

// change the type of $joomleague to use extended functions
  //$joomleague = new HockeyProject( $database);
  //$joomleague->load($p);

switch($jl_func){
	//remember to set $jl_func to a dummy value if you don't want to trigger 
	//matching value in default switch
	
  case "showranking";
    require('views'.'/'.'AF_ranking.php');
    include_once('models/AF_ranking.php');
    showAFRanking($jl_func, $r, $overall_config);
    $jl_func = "end";
    break;
    
  case "showresultsrank":
    $mainframe->setPageTitle(_JL_PAGE_TITLE_RANKING);
    require JL_FUNCTIONS_PATH.'/showresults.php';
    showResults ($jl_func, $r, $overall_config);
    
    require('views'.'/'.'AF_ranking.php');
    include_once('models/AF_ranking.php');
    showAFRanking($jl_func, $r, $overall_config);
    $jl_func = "end";
    break;
}

?>
